# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=scanssh
pkgver=2.1.3.1
pkgrel=3
pkgdesc="Fast SSH server and open proxy scanner"
url="https://github.com/ofalk/scanssh"
arch="all"
license="BSD-3-Clause"
options="!check" # no testsuite
makedepends="autoconf automake libpcap-dev libevent-dev libdnet-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ofalk/scanssh/archive/$pkgver.tar.gz
	gcc14.patch
	"

prepare() {
	default_prepare

	update_config_guess
	update_config_sub
	autoreconf -vif
}

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
970cbb03aa44fcef62aa03132335e6ecedb083cee98a360b3d781efc8c2d3c169f70c17837b1faaf9ceaa2691a7c619174a9bb185146af50188eaceda5d14adb  scanssh-2.1.3.1.tar.gz
72b136f29ce041a7111be2896a5471469eab90c8c8fdfd4eb05fd294796afd9804adc3dc07c894a559cbf16679184ce00b713b0394e9a9a399b587d7f6daa231  gcc14.patch
"
